export const delByIdAction = (id) => {
  return {
    type: 'delById',
    payload: id,
  };
};

export const updateByIdAction = (id) => ({
  type: 'updateById',
  payload: id,
});

export const clearDoneAction = () => ({
  type: 'clearDone',
});

export const addAction = (newTask) => ({
  type: 'add',
  payload: newTask,
});

export const updateTypeAction = (type) => ({
  type: 'updateType',
  payload: type,
});

export const setAllAction = (checked) => ({
  type: 'setAll',
  payload: checked,
});
